The Dreamweaver JavaScript API > File manipulation functions > dom.getLinkHref() |
![]() ![]() ![]() |
Availability
Dreamweaver 3.0
Description
Gets the link that surrounds the current selection. This function is equivalent to looping through the parents and grandparents of the current node until a link is found, and then calling getAttribute('HREF')
on the link.
Arguments
None.
Returns
A string containing the name of the linked file, expressed as a file:// URL.
Enabler
None.
![]() ![]() ![]() |